/**
 * 
 */
package com.yuyi.wxt.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.yuyi.model.KefuDO;

/**
 *
 *
 * @author wxt <br>
 *
 * 2019年4月2日 上午10:20:22
 *
 */
public interface Kefu_WXT_DAO {

    @Select("select * from kefu_table where kefu_number = #{kefuNumber}")
    KefuDO selectByKefuNumber(Integer kefuNumber);
    
    @Update("update kefu_table set kefu_status=1,login_time=#{loginTime} where kefu_number = #{kefuNumber}")
    Integer updateKefu(@Param("kefuNumber")Integer kefuNumber,@Param("loginTime")Long loginTime);
    
    @Update("update kefu_table set kefu_status=2 where kefu_number = #{kefuNumber}")
    Integer updateStatus(@Param("kefuNumber")Integer kefuNumber);
}
